/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.LearnRecordBO;
import com.xy.biz.ts.domain.query.LearnRecordQuery;

/**
 *
 *
 * @author yzh
 * @date 2021-3-29
 */
public interface LearnRecordManager {

	/**
	 * 保存
	 *
	 * @param learnRecordBO
	 */
	int saveLearnRecord(LearnRecordBO learnRecordBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllLearnRecord(Collection<LearnRecordBO> collection);

	/**
	 * 更新
	 *
	 * @param learnRecordBO
	 */
	int updateLearnRecord(LearnRecordBO learnRecordBO);

	/**
	 * 删除
	 *
	 * @param learnRecordId
	 */
	int deleteLearnRecord(Long learnRecordId);

	/**
	 * 查找一个
	 *
	 * @param learnRecordId
	 * @return
	 */
	LearnRecordBO getLearnRecord(Long learnRecordId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<LearnRecordBO> listLearnRecordById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<LearnRecordBO> listLearnRecord(LearnRecordQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countLearnRecord(LearnRecordQuery query);
}
